package com.chenliang.plus.config;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: core
 * @description: 不进行此配置,分页失效
 * @author: 陈亮
 * @create: 2022-05-14 14:35
 */
@EnableTransactionManagement
@Configuration
@MapperScan("com.chenliang.core.mapper")
public class MybatisPlusPageConfig {
    

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
